package org.programmers.anonymous.fightrobots.dao;

import java.util.List;

import org.programmers.anonymous.fightrobots.model.IDeffense;

/**
 * DeffenseDao Interface
 * 
 * @author Daniel Cruz, Francisco Villalba
 *
 */
public interface IDeffenseDao 
{
	
	/**
	 * Stores the deffense on the DB.
	 * @param d - The deffense
	 * @return - The stored deffense id
	 */
	public int save(IDeffense d);
	
	/**
	 * Loads a deffense from the DB
	 * @param Id
	 * @return
	 */
	public IDeffense loadDeffense(int Id);
	
	/**
	 * Deletes a deffense stored on the DB
	 * @param d - The deffense to delete
	 * @return 
	 */
	public boolean delete(IDeffense d);
	
	/**
	 * Returns the list of stored deffenses
	 * @return
	 */
	public List<IDeffense> getDeffenseList();
	
	/**
	 * 
	 */
	public void deleteAllDeffenses();





}
